package com.hfzy.ihk.facade.linkcall.entity;

import com.hfzy.ihk.common.facade.BaseEntity;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * Created by Administrator on 2018/7/19.
 *
 * @author wws
 */
@Document(indexName = "#{elasticSearchConfig.indexName()}_test_entity",shards = 24,replicas = 2, type = "data")
public class TestEntity implements BaseEntity {

    @Id
    String id;

    long version;

    @Field(type = FieldType.Keyword)
    String name;

    @Override
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getVersion() {
        return version;
    }

    public void setVersion(long version) {
        this.version = version;
    }
}
